const joi = require('joi')

const username = joi.string().required()
const password = joi.string().pattern(/^[\S]{6,18}$/).required()
const email = joi.string().email().required()
const phoneNumber = joi.required()
const userType = joi.required()
const registrationTime = joi.required()
const plateNumber1 = joi.required()

const userAccount = joi.required()

const userPic = joi.string().dataUri().required()

module.exports.regReguster = {
  body:{
      username,
      password,
      email,
      phoneNumber,
      userType,
      plateNumber1
  },
}

module.exports.regRegusterEmail = {
  body:{
    email
  }
}

module.exports.regLogin = {
  body : {
    userAccount,
    password
  }
}